package com.jxust.hr.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jxust.debate.pojo.Employee;
import com.jxust.debate.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Description   由于没有 Hr 用户表,所以这里用 department_manager 表,来代替
 *
 **/
@Mapper
public interface UserMapper {

    User selectUser(@Param("username") String username);

    @Select({"select DMName from department_manager WHERE DMAccount=#{username}"})
    String selectNameByUsername(@Param("username") String username);
}
